package com.group01.community.utils;

/**
 * @author : iuoly
 * date : 2022/6/27
 * 响应状态枚举
 */
public enum ResponseStatus {
    // 状态列表
    OK("00000", "请求成功")
    ,LOGIN_SUCCESS("00001","登录成功")
    ,LOGOUT_SUCCESS("00002","退出成功")
    ,LOGIN_ERROR("40001","账号或密码错误")
    ,AUTH_ERROR("40401","没有权限")
    ,PARAM_ERROR("40400","参数错误")
    ,INTERNAL_ERROR("50001","系统错误");

    /**
     * 状态码
     */
    private final String code;
    /**
     * 状态描述
     */
    private final String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResponseStatus(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
